Channels List
AutomatR.Slack.Activities.ChannelsList
The "Channels List" activity in AutomatR is part of the Slack Channel activities package, providing functionality to retrieve the list of channels associated with a Slack user's account. This activity enables automation workflows to obtain information about available channels, supporting enhanced collaboration and communication automation.
Properties
Name | Description |
---|---|
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Channels List" activity. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Returns the list of channels as a response. List of ChannelsListResponse objects containing channel information. |
ChannelsListResponse Class
Property | Description |
---|---|
id | The unique identifier for the channel. |
name | The name of the channel. |
is_channel | Indicates whether the channel is a general channel. |
is_private | Indicates whether the channel is a private channel. |
is_member | Indicates whether the user is a member of the channel. |
is_im | Indicates whether the channel is an IM (instant messaging) channel. |
is_mpim | Indicates whether the channel is an MPIM (multiparty instant messaging) channel. |
is_group | Indicates whether the channel is a group channel. |
created | The timestamp indicating when the channel was created. |
How to use:
- Drag and drop the "Channels List" activity onto the workflow.
- Optionally, configure the delay.
- Execute the workflow to retrieve the list of channels.
Example: Consider an example where the "Channels List" activity is used to obtain the list of channels associated with a Slack user's account:
Channels List:
Delay: 2
Result: SlackChannelsList
In this example, the activity retrieves the list of channels, and the result is stored in the variable "SlackChannelsList" for further handling in the workflow.